package com.jfs.properties;

import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * @Description 心跳线程池配置文件
 * @E-mail cwm3412638@163.com
 * @Author cwm
 * @Date 2022-08-23
 */
@Getter
@Setter
@ConfigurationProperties(prefix = "jfs.executor.beat")
public class BeatExecutorProperties {
    private final static String THREAD_NAME_PREFIX="beatExecutor-";
    /**
     * 线程池维核心线程数量
     */
    private int corePoolSize = 10;
    /**
     * 线程池前缀
     */
    private String threadNamePrefix = THREAD_NAME_PREFIX;

    /**
     * 心跳检测任务执行周期 默认5s
     */
    private Integer heartBeatInterval=5000;
}
